package com.molichuxing.services.property;


import java.util.HashMap;
import java.util.Map;

public enum GoodsMileageSubscribeEnum {
  ONE(1, "30天"),
  TWO(2, "60天"),
  THREE(3, "90天");

  private static final Map<Integer, GoodsMileageSubscribeEnum> map = new HashMap<Integer, GoodsMileageSubscribeEnum>() {
    private static final long serialVersionUID = -8414553247670306999L;

    {
      GoodsMileageSubscribeEnum[] enums = GoodsMileageSubscribeEnum.values();
      GoodsMileageSubscribeEnum[] var2 = enums;
      int var3 = enums.length;

      for(int var4 = 0; var4 < var3; ++var4) {
        GoodsMileageSubscribeEnum enumerate = var2[var4];
        this.put(enumerate.getValue(), enumerate);
      }

    }
  };
  private Integer value;
  private String name;

  public static GoodsMileageSubscribeEnum getEnum(Byte value) {
    return (GoodsMileageSubscribeEnum)map.get(value);
  }

  public static String getEnumDesc(Byte value) {
    GoodsMileageSubscribeEnum enumerate = (GoodsMileageSubscribeEnum)map.get(value);
    return enumerate != null ? enumerate.getName() : "";
  }

  public Integer getValue() {
    return this.value;
  }

  public void setValue(Integer value) {
    this.value = value;
  }

  public String getName() {
    return this.name;
  }

  public void setName(String name) {
    this.name = name;
  }

  private GoodsMileageSubscribeEnum(Integer value, String name) {
    this.value = value;
    this.name = name;
  }
}
